plusieurs style sur un element javascript

55

plusieurs style sur un element javascript -

document.getElementById("myElement").style.cssText = "display: block; position: absolute";

//use template literals
document.getElementById("myElement").style.cssText = `
  display: block; 
  position: absolute;
`;

Comments

Submit
0 Comments